package com.hxzy.common.exception;

import com.hxzy.common.enums.AckCode;
import com.hxzy.common.resp.R;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/8/31 11:34
 * @Version 1.0
 */
public class ServiceStringException extends RuntimeException{
    private R r;

    public R getR() {
        return r;
    }

    public ServiceStringException(String msg){
        super(msg);
        R temp=new R();
        temp.setCode(AckCode.FAIL.code);
        temp.setMsg(msg);

        this.r=temp;
    }
}
